package com.zhao.wechat.config;


import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * 腾讯微信公总平台配置
 */
@Data
@Slf4j
@Configuration
@ConfigurationProperties(prefix = "tencent.wechat")
public class WechatConfig {

    /**
     * appid
     **/
    private String appId;

    /**
     * appsecret
     **/
    private String appSecret;

    /**
     * 打印当前微信公众号配置信息
     */
    @PostConstruct
    void init() {
        log.info("腾讯微信公众号配置，appId:{},appSecret:{}", appId, appSecret);
    }
}
